// import { useStore } from "@/store";

// export function usePermission(pageName: string, hanldeName: string){
//   const store = useStore();
//   const permissions = store.state.login.permissions;
//   const verifyPermission = `system:${pageName}:${hanldeName}`;

//   // name = "123"
//   // !name = false
//   // !!name = true
//   return !!permissions.find((item: any) => item === verifyPermission);
// }
